<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
		+ request.getServerName() + ":" + request.getServerPort()
		+ path + "/";
%>
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Spring Demo</title>
<link href="static/style_bt/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="static/style_bt/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<link href="static/style_bt/bootstrap3-dialog/dist/css/bootstrap-dialog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="static/style_bt/js/jquery.min.js"></script>
<script type="text/javascript" src="static/style_bt/js/bootstrap.min.js"></script>
<script type="text/javascript" src="static/style_bt/bootstrap3-dialog/dist/js/bootstrap-dialog.js"></script>
</head>
<body style="padding-bottom: 70px;">
<div><h1>Spring Demo</h1></div>
<div style="margin-left: 10%;width: 80%;height: 700px">
	<nav class="navbar navbar-default">
		<div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Brand</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
        <li><a onclick="setMianFrameUrl('user/userlist.do')">用户列表</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>
      </ul>
      <form class="navbar-form navbar-left">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="logout.do">退出</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
	</nav>
		<!-- <form id="myForm" method="post" target="mainFrame">
			<input type="hidden" name="datas" id="data_param" />
		</form> -->
		<iframe id="mainFrame" src="mainframe.do" scrolling="no" style="width: 100%;height: 100%;">
		</iframe>
</div>
</body>
<script type="text/javascript">
	function setMianFrameUrl(url){
		/* alert(url); */
		$('#mainFrame').attr("src",url);
		/* $('#myForm').attr("action",url);
		$('#myForm').submit(); */
	}
</script>
</html>